﻿using System;
using System.Collections.Generic;

namespace MinimalistFoodStreet.BackEnd.Infrastructure.EFCore;

/// <summary>
/// 账号表
/// </summary>
public partial class Account
{
    /// <summary>
    /// r,u,d-编号
    /// </summary>
    public int AId { get; set; }

    /// <summary>
    /// r-名称默认采用账号
    /// </summary>
    public string? AName { get; set; }

    /// <summary>
    /// r-头像
    /// </summary>
    public string? AAvatar { get; set; }

    /// <summary>
    /// r-账户
    /// </summary>
    public string AAccount { get; set; } = null!;

    /// <summary>
    /// r-邮箱
    /// </summary>
    public string? AEmail { get; set; }

    /// <summary>
    /// r-电话
    /// </summary>
    public string APhone { get; set; } = null!;

    /// <summary>
    /// r-哪个端的账号(管理端，供应商端，商家端)
    /// </summary>
    public string AEndpoint { get; set; } = null!;

    /// <summary>
    /// r-是否禁用
    /// </summary>
    public int AIsBan { get; set; }

    /// <summary>
    /// r-是否激活
    /// </summary>
    public int AIsActive { get; set; }

    /// <summary>
    /// 密码
    /// </summary>
    public string APassword { get; set; } = null!;

    /// <summary>
    /// 盐值
    /// </summary>
    public string ASalt { get; set; } = null!;

    /// <summary>
    /// r-创建时间
    /// </summary>
    public DateTime ACreateTime { get; set; }

    /// <summary>
    /// r-修改时间
    /// </summary>
    public DateTime? AUpdateTime { get; set; }

    public virtual ICollection<ActionLog> ActionLogs { get; set; } = new List<ActionLog>();

    public virtual ICollection<Administrator> Administrators { get; set; } = new List<Administrator>();

    public virtual ICollection<Businesss> Businessses { get; set; } = new List<Businesss>();

    public virtual ICollection<Comment> Comments { get; set; } = new List<Comment>();

    public virtual ICollection<Info> InfoIReceiveManNavigations { get; set; } = new List<Info>();

    public virtual ICollection<Info> InfoISendManNavigations { get; set; } = new List<Info>();

    public virtual ICollection<LoginLog> LoginLogs { get; set; } = new List<LoginLog>();

    public virtual ICollection<Supplier> Suppliers { get; set; } = new List<Supplier>();
}
